package com.xinqi.modules.prepare.prepare.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.UpdateTimeEntity;
import com.xinqi.modules.prepare.common.domain.PrepareBaseParam;
import com.xinqi.modules.prepare.prepare.enums.PrepareMemberRoleEnum;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 备课区成员实体层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Setter
@Getter
@TableName("pl_prepare_member")
public class PrepareMemberEntity extends UpdateTimeEntity implements PrepareBaseParam {
    /**
     * 备课区id
     */
    @TableField(value = "prepare_id")
    private Long prepareId;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 角色，LEADER-组长；ADMIN-管理员；MEMBER-组员
     */
    @TableField(value = "role")
    private PrepareMemberRoleEnum role;
    /**
     * 加入时间
     */
    @TableField(value = "join_time")
    private LocalDateTime joinTime;
    /**
     * 扩展字段
     */
    @TableField(value = "extend")
    private String extend;
}
